<span id="${uuid}"></span>

<style>
    .bdrBtm {
        border-bottom: 1px dotted #ccc;
    }

    .bdrTop {
        border-top: 1px dotted #ccc;
    }
</style>

<div data-id="content" class="box_tc_s">
    <form data-id="form-attendance-update-info" method="post"
          action="${pageContext.request.contextPath}/app/api/attendance/endTime">
        <input type="hidden" name="id" value="${attendance.id}">
        <table border="0" cellpadding="0" cellspacing="0" class="hydra-table">
            <tr class="hydra-tr-bg bdrBtm">
                <td class="hydra-left width90">考勤事由：</td>
                <td class="hydra-right">
                    ${attendance.reason.dirValue}
                </td>
            </tr>
            <%--<c:if test="${!empty attendance.projectCode}">--%>
            <%--<tr class="hydra-tr-bg bdrBtm">--%>
            <%--<td class="hydra-left width90">项目代号：</td>--%>
            <%--<td class="hydra-right">--%>
            <%--${attendance.projectCode}--%>
            <%--</td>--%>
            <%--</tr>--%>
            <%--</c:if>--%>
            <tr class="hydra-tr-bg bdrBtm">
                <td class="hydra-left width90">备注：</td>
                <td class="hydra-right">
                    ${attendance.remark}
                </td>
            </tr>
            <tr class="hydra-tr-bg bdrBtm">
                <td class="hydra-left width90">人员：</td>
                <td class="hydra-right">
                    ${attendance.applyUser.orgsDescription} - ${attendance.applyUser.userName}
                </td>
            </tr>
            <tr class="hydra-tr-bg bdrBtm">
                <td class="hydra-left width90">填报人：</td>
                <td class="hydra-right">
                    ${attendance.createUser.orgsDescription} - ${attendance.createUser.userName}
                    <c:if test="${attendance.isReplace eq 1}">
                        (代填)
                    </c:if>
                </td>
            </tr>
            <tr class="hydra-tr-bg bdrBtm">
                <td class="hydra-left width90">填报时间：</td>
                <td class="hydra-right">
                    <fmt:formatDate value="${attendance.createTime}" pattern="yyyy-MM-dd HH:mm"/>
                </td>
            </tr>
            <tr class="hydra-tr-bg bdrBtm">
                <td class="hydra-left width90">开始时间：</td>
                <td class="hydra-right">
                    <fmt:formatDate value="${attendance.beginTime}" pattern="yyyy-MM-dd HH:mm"/>
                </td>
            </tr>
            <tr class="hydra-tr-bg">
                <td class="hydra-left width90">结束时间：</td>
                <td class="hydra-right">
                    <c:choose>
                        <c:when test="${empty attendance.endTime}">
                            暂无
                        </c:when>
                        <c:otherwise>
                            <fmt:formatDate value="${attendance.endTime}" pattern="yyyy-MM-dd HH:mm"/>
                        </c:otherwise>
                    </c:choose>
                </td>
            </tr>
            <c:if test="${not empty attendance.apm}">
                <tr class="hydra-tr-bg bdrTop">
                    <td class="hydra-left width90">考勤天数：</td>
                    <td class="hydra-right">
                        <c:choose>
                            <c:when test="${empty attendance.days}">
                                暂无
                            </c:when>
                            <c:otherwise>
                                ${attendance.days}天
                            </c:otherwise>
                        </c:choose>
                    </td>
                </tr>
            </c:if>
            <c:if test="${not empty records}">
                <tr class="hydra-tr-bg bdrTop">
                    <td class="hydra-left width90">审批记录：</td>
                    <td class="hydra-right">
                        <c:forEach var="record" items="${records}">
                            <div style="margin-top: 5px;">审批人：${record.sysUserMember.userName}
                                &nbsp;&nbsp;结果：${record.approStatus eq '1' ? '审批通过' : '审批拒绝'}
                                &nbsp;&nbsp;时间：<fmt:formatDate value="${record.approDate}" pattern="yyyy-MM-dd HH:mm:ss" />
                            </div>
                        </c:forEach>
                    </td>
                </tr>
            </c:if>
        </table>
    </form>
</div>
